package com.boolib.http.core.exception;

public class ExceptionFactory {

    public static   CheckedException ofCheck(String code,String msg){
        return new CheckedException(code, msg);
    }

    public static   CheckedException ofCheck(String code,String msg,Throwable throwable){
        return  new CheckedException(code,msg,throwable);
    }

    public static   BusinessException ofBiz(String code,String msg){
        return new BusinessException(code, msg);
    }

    public static   BusinessException ofBiz(String code,String msg,Throwable throwable){
        return  new BusinessException(code,msg,throwable);
    }

}
